package plantshop.tests;

import static org.junit.Assert.*;

import java.util.ArrayList;
import java.util.List;

import javax.swing.JFrame;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import plantshop.model.Characteristics;
import plantshop.model.Customer;
import plantshop.model.Game;
import plantshop.model.TutorialPlayer;

public class TutorialPlayerTest {
	
	@Test
	public void testTutorialPlayer(){
		TutorialPlayer tp = new TutorialPlayer(null,new JFrame(),"Tutorial",true,null);
	}

	@Test
	public void testSendCustomer() {
		Game game = new Game(1,1);
		TutorialPlayer tp = new TutorialPlayer(game);
		tp.sendCustomer();
		List<Customer> customers = game.getCustomers();
		assertTrue(customers.size()==1);
		assertTrue(customers.get(0).getDesiredPlant().equals(new Characteristics(5,5,10,5,5)));
	}

}
